import Vue from 'vue'
import Router from 'vue-router'
// import FooterGuide from '../components/FooterGuide/FooterGuide.vue'
import Msite from '../pages/Msite/Msite.vue'
import Order from '../pages/Order/Order.vue'
import Profile from '../pages/Profile/Profile.vue'
import Search from '../pages/Search/Search.vue'
import Login from '../pages/Login/login.vue'






Vue.use(Router)

export default new Router({
  linkActiveClass: 'on', // 被选中的路由对应的标签上面会有一个类名叫on 
  routes: [
    { path: '/', redirect:'/msite'},
    { path: '/msite', name: 'msite', component: Msite, meta: { requiresAuth: true } },
    { path: '/order', name: 'order', component: Order, meta: { requiresAuth: true } },
    { path: '/profile', name: 'profile', component: Profile, meta: { requiresAuth: true } },
    { path: '/search', name: 'search', component: Search, meta: { requiresAuth: true } },
    { path: '/login', name: 'login', component: Login },

    //  {path:'/FooterGuide',name:'FooterGuide',component:Search},


  ]
})
